import request from "@/utils/request";

// 查询订单列表
export function getOrderDate7Days() {
  return request({
    url: "/orderset/orderset/getOrderDate7Days",
    method: 'get',
  })
}

// 查询预约设置列表
export function listOrderset(query) {
  return request({
    url: '/orderset/orderset/list',
    method: 'get',
    params: query
  })
}

// 查询预约设置详细
export function getOrderset(id) {
  return request({
    url: '/orderset/orderset/' + id,
    method: 'get'
  })
}

// 新增预约设置
export function addOrderset(data) {
  return request({
    url: '/orderset/orderset',
    method: 'post',
    data: data
  })
}

// 修改预约设置
export function updateOrderset(data) {
  return request({
    url: '/orderset/orderset',
    method: 'put',
    data: data
  })
}

// 删除预约设置
export function delOrderset(id) {
  return request({
    url: '/orderset/orderset/' + id,
    method: 'delete'
  })
}
